﻿using EMall.Domain;

namespace EMall.ProductService.Products
{
    public class Picture : Entity<int>
    {
        public int ProductId { get; private set; }
        public string Url { get; private set; }
        protected Picture() { }
        public Picture(int productId, string url)
        {
            ProductId = productId;
            Url = url;
        }
        public void Update(string url)
        {
            Url = url;
        }
    }
}
